<?php
namespace Part08_FactoryMethodModel\Code2;
/**
 * @desc: 加法运算类
 * @date: 2021/10/19
 */
class OperationAdd extends Operation
{
    public function getResult(){
        return $this->getNumA() + $this->getNumB();
    }
}